net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Tue, 24 Oct 2017 17:57:13 +0000 (19:57 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 14 Jan 2018 19:45:05 +0000 (19:45 +0000)
commite7bf889ebfbf28ef8ee46d669e9ee71e26c05624
tree28438f7a4eaa40bdfebe7216b8f5f3705bb24715
parentfdf2111e0e077ec410990a987a0362ad354baad6
net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

The Allwinner H3 SoC have two distinct MDIO bus, only one could be
active at the same time.
The selection of the active MDIO bus are done via some bits in the EMAC
register of the system controller.

This patch implement this MDIO switch via a custom MDIO-mux.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic features/arm/dwmac-sun8i
Gbp-Pq: Name 0001-net-stmmac-dwmac-sun8i-Handle-integrated-external-MD.patch
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c